const text = '🤩 🤨 🤯 🤪 🤬 🤮 🤫 🤭 🧐 😀 🤣 😅 😆 😋 😎 😗 😙 🙂 🤗 🤩 🤔 🤨
😐 😑 😶 🙄 😮 🤐 😯 😫 😴 😛 🤤 😕 🙃 🤑 😲 ☹ 🙁 😟 😤 😦 😧 😩 🤯 😬 🤪 🤬 🤒
🤕 🤢 🤮 🤧 😇 🤠 🤡 🤥 🤫 🤭 🧐 🤓 😈 👹 👺 🤖 😺 😸 😹 😻 😼 😽 🙀 😿 😾 🦊 🦝
🐼 🦘 🦡 🦁 🐽 🙈 🙉 🙊 🐣 🐥 🦆 🦢 🦅 🦉 🦚 🦜 🦇 🦄 🐝 🦋 🐌 🐞 🐜 🦗 🕷 🕸 🦂
🦟 🦠 🐢 🦎 🦖 🦕 🦑 🦐 🦀 🐡 🐋 🦈 🐊 🐅 🐆 🦓 🦍 🦏 🦛 🐪 🦙 🦒 🐃 🐂 🐄 🐖 🐏
🐐 🦌 🐕 🐩 🐈 🐓 🦃 🕊 🐇 🐁 🐀 🐿 🦔 🐾 🐉 🐲 🌲 🌳 🌱 🌿 ☘ 🎋 🍄 🥀 🌼 🌞 🌝 🌛
🌜 🌚 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔 🌎 🌍 🌏 💫 ⭐ ☄ 💥 🌪 🌤 ⛅ 🌥 🌦 🌧 ⛈ 🌩 🌨 ❄ ☃ 🌬 💧 ☂
🌫 ' const emojis = text.split(' ') function rand(m, n, int = false) { const r =
Math.random() * (n - m) + m return int ? Math.floor(r) : r } function
maKeItem(size = 16) { const { clientHeight, clientWidth } =
document.documentElement const item = { t: emojis[rand(0, emojis.length, true)],
dx: (Math.random() > 0.5 ? 1 : -1) * rand(0.5, 2), //x方向速度 dy:
(Math.random() > 0.5 ? 1 : -1) * rand(0.5, 2), //y方向速度 x: rand(0,
clientWidth - size), y: rand(0, clientHeight - size), el: null, init: function
() { //初始值 this.el = document.createElement('div') this.el.className = 'item'
this.el.innerText = this.t this.el.style.width = size + 'px'
this.el.style.height = size + 'px' this.el.style.fontSize = size + "px"
this.el.style.left = this.x + 'px' this.el.style.top = this.y + 'px'
document.body.top = this.y + 'px'
